<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>高校课程评价网站</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="${ctx}/css/manage.css" />
    <link rel="stylesheet" href="${ctx}/lib/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/css/global.css" charset="utf-8" />
    <script src="${ctx}/js/hm.js"></script>
    <script type="text/javascript" src="${ctx}/lib/layui/layui.js"></script>
    <link id="layuicss-layer" rel="stylesheet" href="${ctx}/css/layer.css" media="all" />
    <meta charset="UTF-8">
</head>
<body>
<div class="layui-container fly-marginTop fly-user-main">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <a href="javascript:;" ><img src="${sessionScope.user_session.avatar}" class="layui-nav-img" style="width:50px;height:50px;margin-left:70px;margin-top: 40px;"></a>
        <div><a href="" style="color: white;padding-left: 80px;padding-top: 10px">${sessionScope.user_session.userName} </a></div>
        <li class="layui-nav-item"> <a href="./manage?id=${sessionScope.user_session.userID}"> <i class="layui-icon"></i> 我的资料 </a> </li>
        <li class="layui-nav-item "> <a href="./password"> <i class="layui-icon"></i> 修改密码 </a> </li>
        <li class="layui-nav-item "> <a href="./avatar?id=${sessionScope.user_session.userID}"> <i class="layui-icon"></i> 头像管理 </a> </li>
        <li class="layui-nav-item "> <a href="./login"> <i class="layui-icon"></i> 返回系统 </a> </li>
        <li class="layui-nav-item "> <a href="./exit"> <i class="layui-icon"></i> 退出系统 </a> </li>
        <span class="layui-nav-bar"></span>
    </ul>
    <div class="site-mobile-shade"></div>
    <div class="fly-panel fly-panel-user" pad20="">
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li class="layui-this" lay-id="info">我的资料</li>
            </ul>
            <div class="layui-tab-content" style="padding: 20px 0;">
                <div class="layui-form layui-form-pane layui-tab-item layui-show">
                    <form method="post" action="./updataUser">
                        <div class="layui-form-item">
                            <label for="L_email" class="layui-form-label">学号</label>
                            <div class="layui-input-inline">
                                <input type="text"  id="number" name="userID" required="" lay-verify="phone" autocomplete="off" value="${user.userID}" placeholder="学号" class="layui-input" readonly="readonly"/>
                            </div>
                            <p style="color: red">* 学号不允许修改，若要修改请联系系统管理员</p>
                            <div class="layui-form-mid layui-word-aux">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="L_username" class="layui-form-label">姓名</label>
                            <div class="layui-input-inline">
                                <input type="text" id="L_username" name="userName" required="" lay-verify="required" autocomplete="off" value="${user.userName}" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="L_email" class="layui-form-label">手机</label>
                            <div class="layui-input-inline">
                                <input type="text" id="L_phone" name="telephone" required="" lay-verify="phone" autocomplete="off" value="${user.telephone}" placeholder="请输入手机号" class="layui-input" />
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="L_email" class="layui-form-label">邮箱</label>
                            <div class="layui-input-inline">
                                <input type="text" id="L_email" name="email" required="" lay-verify="email" autocomplete="off" value="${user.email}" class="layui-input" />
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label for="L_username" class="layui-form-label">性别</label>
                            <div class="layui-input-inline">
                                <input type="text" id="gender" name="gender" required="" lay-verify="required" autocomplete="off" value="${user.gender}" class="layui-input" />
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label for="L_username" class="layui-form-label">专业</label>
                            <div class="layui-input-inline">
                                <input type="text" id="major" name="major" required="" lay-verify="required" autocomplete="off" value="${user.major}" class="layui-input" />
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label for="L_username" class="layui-form-label">学院</label>
                            <div class="layui-input-inline">
                                <input type="text" id="department" name="department" required="" lay-verify="required" autocomplete="off" value="${user.department}" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button type="submit" class="layui-btn" key="set-mine" lay-filter="*" lay-submit="">确认修改</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="footer" style="background-color:#3a3d48;height: 60px;">
        <div class="copyright" align="center"style="background-color:#3a3d48;color: white;padding-top: 20px;">Copyright ©2020 欢迎关注公众号【籁小知】！</div>
    </div>
</div>
</body>
</html>